﻿namespace RpcSyncService.Interface
{
    public interface IAccreditKeyCollect
    {
        Guid? KickOut(string checkKey);
        bool Renewal(IAccreditToken token, TimeSpan time);
        Guid Set(string applyKey, Guid accreditId, TimeSpan time);
        bool TryRemove(string checkKey, Guid accreditId);
        bool Check(string checkKey, Guid accreditId);
    }
}